package com.example.demo.statemachine.demo02;

import java.util.Map;

/**
 * @author MarioZzz
 * @create 2025-07-01 17:30
 */
public interface IOrderService {
    //创建新订单
    Order create();

    //发起支付
    Order pay(int id);

    //订单发货
    Order deliver(int id);

    //订单收货
    Order receive(int id);

    //获取所有订单信息
    Map<Integer, Order> getOrders();
}
